'use strict';
const requireEx=require('yi-require');
const $ = requireEx('yi-schema');
module.exports = {
	query: $.object({
		page: $.object({
			size: $.number().integer().positive().default(10),
			index: $.number().integer().positive().default(1)
		}),
		filter: $.object({
          search:$.string().allow('').description("搜索内容")
		}),
		project: $.object({
          picPath:$.number().valid(0,1).default(1),
          soundPath:$.number().valid(0,1),
          title:$.number().valid(0,1),
          cardKindID:$.number().valid(0,1),
          authorID:$.number().valid(0,1),
          checkState:$.number().valid(0,1),
          createTime:$.number().valid(0,1),
          lastModifyDate:$.number().valid(0,1)
		}),
		sort: $.object({
            createTime: $.number().valid(-1,1)
		})
	})
};